package com.cloudweb.oa.module.desktop;

import cn.js.fan.util.StrUtil;

import javax.servlet.http.HttpServletRequest;

public class DesktopCardFlowLaunch extends AbstractDesktopCard {

    public DesktopCardFlowLaunch(DesktopCard desktopCard) {
        this.desktopCard = desktopCard;
    }

    @Override
    public int getEndVal(HttpServletRequest request) {
        if (!StrUtil.isEmpty(desktopCard.getEndValfunc())) {
            return getEndValByFunc(desktopCard);
        }
        return -1;
    }
}
